package com.milestone.fitnesspersonaltrainer.service;

import com.milestone.fitnesspersonaltrainer.constants.ConstantCode;
import com.milestone.fitnesspersonaltrainer.model.CategoryModel;
import com.milestone.fitnesspersonaltrainer.model.Course;
import com.milestone.fitnesspersonaltrainer.model.Diet;
import com.milestone.fitnesspersonaltrainer.model.DietPage;
import com.milestone.fitnesspersonaltrainer.model.HomeModel;
import com.milestone.fitnesspersonaltrainer.model.News;
import com.milestone.fitnesspersonaltrainer.model.NewsPage;
import com.milestone.fitnesspersonaltrainer.network.response.BaseResponse;
import com.milestone.fitnesspersonaltrainer.network.response.RxVoid;

import java.util.ArrayList;

import io.reactivex.Flowable;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;
import retrofit2.http.Url;

/**
 * Created by ThinkPad on 2017/11/2.
 */

public interface FitnessService {

    //  @POST(ConstantCode.NAMESPACE + "/getCourse.php")
    @GET
    Flowable<BaseResponse<ArrayList<Course>>> getCourse(@Url String url);

    @POST(ConstantCode.NAMESPACE + "/addLikeByUrl.php")
    Flowable<BaseResponse<News>> getNews(@Body NewsPage page);

    @POST(ConstantCode.NAMESPACE + "/addLikeByUrl.php")
    Flowable<BaseResponse<Diet>> getDiet();

    @POST(ConstantCode.NAMESPACE + "/addLikeByUrl.php")
    Flowable<BaseResponse<ArrayList<Diet.DietBean>>> getDietList(@Body DietPage page);

}
